package com.qfedu.buy.server.config;

import com.qfedu.buy.common.config.RabbitMQConstantConfig;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: NeighborBuy
 * @description:
 * @author: Feri(邢朋辉)
 * @create: 2021-02-02 11:05
 */
@Configuration
public class RabbitMQConfig {
    @Bean
    public Queue createBean(){
        return new Queue(RabbitMQConstantConfig.QUEUE_CART_NUM);
    }
}
